home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 4_0 / DIZZY / SRC / MACSTUFF.H < prev    next >
Text File  |  1990-12-28  |  1KB  |  44 lines

  1. /*
  2. >>    Dizzy 0.0    MacStuff.h
  3. >>
  4. >>    A digital circuit simulator & design program for the X Window System
  5. >>
  6. >>    Copyright 1990 Juri Munkki, all rights reserved
  7. >>
  8. >>    You are entitled to do whatever you wish with this program, as long as
  9. >>    you give credit all those people, who have worked on this program. If
  10. >>    you are going to sell this program or obtain commercial benefit from it
  11. >>    otherwise, please consult the authors first to obtain information about
  12. >>    licensing this program for commercial use.
  13. */
  14.  
  15. #ifndef _MacStuff_
  16. #define _MacStuff_
  17.  
  18. typedef char    *Ptr;
  19. typedef char    **Handle;
  20.  
  21. typedef struct 
  22. {
  23.     int     h,v;
  24. }    Point;
  25.     
  26. typedef struct
  27. {
  28.     int     left,top,right,bottom;
  29. }    Rect;
  30.  
  31. GLOBAL    int         macpen_x,macpen_y;
  32. GLOBAL    int         orig_x;
  33. GLOBAL    int         orig_y;
  34. GLOBAL    Rect        mac_clipper;
  35. GLOBAL    Rect        portrect;
  36.  
  37. #define NonEmpty(r)     (((r)->left<(r)->right)?((r)->top<(r)->bottom):FALSE)
  38. #define EmptyRect(r)    (((r)->left>=(r)->right)?TRUE:((r)->top>=(r)->bottom))
  39. #define MoveTo(x,y)     {macpen_x=x;macpen_y=y;}
  40. #define Delay(a,b)
  41. #define HILITEMODE
  42. #define MenuFlash        2
  43. #endif _MacStuff_
  44.